

/** 解析路径 */
export const resolvePath = (basePath: string, routePath: string): string => {
    if (routePath.slice(0, 1) === '/') {
        return routePath
    }
    if (basePath.slice(basePath.length - 1, 1) === '/')
        return `${basePath}${routePath}`
    return `${basePath}/${routePath}`
}